package cn.iocoder.yudao.module.acm.controller.admin.textileproduceplan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.time.LocalTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_HOUR_MINUTE;

@Schema(description = "管理后台 - 航机管理-纺织品生产计划新增/修改 Request VO")
@Data
public class TextileProducePlanSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "28265")
    private Long id;

    @Schema(description = "计划编号")
    private String planCode;

    @Schema(description = "航班号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "航班号不能为空")
    private String flightNo;

    @Schema(description = "起飞时间")
    @DateTimeFormat(pattern = FORMAT_HOUR_MINUTE)
    private LocalTime depTime;

    @Schema(description = "所属公司")
    private String airlineComp;

    @Schema(description = "前舱数量")
    private Integer frontCabinQty;

    @Schema(description = "中舱数量")
    private Integer middleCabinQty;

    @Schema(description = "后舱数量")
    private Integer rearCabinQty;

    @Schema(description = "特殊说明")
    private String remarks;

    @Schema(description = "前舱纺织品列表")
    private List<TextilePlanDetailSaveReqVO> frontDetailList;
    @Schema(description = "中舱纺织品列表")
    private List<TextilePlanDetailSaveReqVO> middleDetailList;
    @Schema(description = "后舱纺织品列表")
    private List<TextilePlanDetailSaveReqVO> rearDetailList;

}